-- GENERATED SPELL FOR [Amani'shi Tribesman] --


function spell0_23582(pUnit, Event) --@Cyclone Strike,Self--
pUnit:FullCastSpellOnTarget(42495,pUnit)
pUnit:RegisterEvent('Sorts_23582', 1301, 1)
end

function spell1_23582(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(36033,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23582', 6269, 1)
end

function Sorts_23582(pUnit, Event)
local choix_sorts_23582 = math.random(0, 1)
if choix_sorts_23582 == 0 then
pUnit:RegisterEvent('spell0_23582', 1, 1)
end
if choix_sorts_23582 == 1 then
pUnit:RegisterEvent('spell1_23582', 1, 1)
end
end

function mob23582_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23582', math.random(1500, 3000), 1)
end

function mob23582_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23582_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23582_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23582, 1, 'mob23582_Action')
RegisterUnitEvent(23582, 2, 'mob23582_Leave')
RegisterUnitEvent(23582, 3, 'mob23582_Kill')
RegisterUnitEvent(23582, 4, 'mob23582_Die')
